home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / AIAT / Examples / Sources / RamStoreStream / BetterHandleStream.cp next >
Encoding:
Text File  |  1998-04-16  |  325 b   |  18 lines  |  [TEXT/CWIE]

  1. //    Copyright:    © 1994 - 1998 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #include "BetterHandleStream.h"
  4.  
  5.  
  6. void BetterHandleStream::SetLength(Int32    inLength)
  7. {
  8.     if(growth_factor < 1.0)
  9.         SysBreak();
  10.     
  11.     if(inLength < mLength * growth_factor)
  12.         inLength =  inLength * growth_factor;
  13.  
  14.     LHandleStream::SetLength(inLength);
  15. }
  16.  
  17.  
  18.